from random import random, randint
from selenium import webdriver;
import time;
from selenium.webdriver.common.by import By;
from selenium.webdriver.support.select import Select

def max_min(list):

    max = list[0];
    min = list[0];

    for i in list:
        if max < i:
            max = i;
        if min > i:
            min = i;

    flag = [0, 0];
    flag[0] = max;
    flag[1] = min;

    return flag;

# res = max_min([23, 24, 1, -9, 0, 67]);
# print("最大值:", res[0], "最小值:", res[1]);


def number():
    res = randint(0, 100);

    flag = 0
    while 1:
        num = int(input("输入数字: "))

        if num < res:
            print("您猜小了！");
            flag = flag + 1;
        elif num > res :
            print("您猜大了！");
            flag = flag + 1;
        else:
            print("猜对了！");
            flag = flag + 1;
            break;

    print("您猜了",flag, "次!");
    if flag > 0 and flag <=3:
        print("你真棒！");
    elif flag > 3 and flag <=7:
        print("正常水平");
    else:
        print("笨蛋！");

# number();

def test():
    browser = webdriver.Chome();

